package com.lmf.springboot.controller;

import com.lmf.springboot.model.Student;
import com.lmf.springboot.service.StudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class Controller_1 {

    @Autowired
    private StudentService studentServiceImpl;

    @RequestMapping("/hello")
    @ResponseBody
    public Student dosome(Integer id){
        Student student=studentServiceImpl.queryStudentById(id);
        return student;
    }
}
